package cn.bgs.service.impl;

import cn.bgs.dao.ExamMapper;
import cn.bgs.pojo.ExamStorage;
import cn.bgs.pojo.Student;
import cn.bgs.service.ExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author Mr.JIA
 * @DATE 2021/8/4 0004 8:40
 * @PROJECT_NAME mybatis_phoenix
 * @PACKAGE_NAME cn.bgs.service.impl
 */
@Service
public class ExamServiceImpl implements ExamService {

    @Autowired
    private ExamMapper examMapper;


    @Override
    public List<Student> findAllExam(ExamStorage ex) {
        return examMapper.findAllExam(ex);
    }

    @Override
    public Integer addExam(ExamStorage ee) {
        return examMapper.addExam(ee);
    }

    @Override
    public Integer delExam(Integer pkId) {
        return examMapper.delExam(pkId);
    }
}
